Preset Data
DataFaker provides support for the following preset data. Below is a Markdown table document generated based on the provided module information, with one table per module for clear structure and easy reference.
Airline Module
| Key Name | Description |
|---|---|
airline.aircraftType | Aircraft model (e.g., Boeing 747, Airbus A320) |
airline.airline | Airline name (e.g., Air China, Delta Airlines) |
airline.airplane | Aircraft name or registration number |
airline.airport | Airport name (e.g., Beijing Capital International Airport) |
airline.flightNumber | Flight number (e.g., CA185, MU510) |
airline.recordLocator | Record locator (e.g., PNR code like ABC123) |
airline.seat | Seat number (e.g., 12A, 25C) |
Animal Module
| Key Name | Description |
|---|---|
animal.bear | Bear species (e.g., Grizzly Bear, Polar Bear) |
animal.bird | Bird name (e.g., Sparrow, Eagle) |
animal.cat | Cat breed (e.g., Siamese, Persian) |
animal.cetacean | Cetacean species (e.g., Dolphin, Blue Whale) |
animal.cow | Cow breed (e.g., Holstein, Jersey) |
animal.crocodilia | Crocodilian species (e.g., Nile Crocodile) |
animal.dog | Dog breed (e.g., Labrador, Poodle) |
animal.fish | Fish name (e.g., Salmon, Goldfish) |
animal.horse | Horse breed (e.g., Thoroughbred, Arabian) |
animal.insect | Insect name (e.g., Butterfly, Ant) |
animal.lion | Lion-related content (e.g., African Lion) |
animal.petName | Pet name (e.g., Max, Luna) |
animal.rabbit | Rabbit breed (e.g., Holland Lop, Flemish Giant) |
animal.rodent | Rodent species (e.g., Mouse, Hamster) |
animal.snake | Snake species (e.g., Python, Rattlesnake) |
animal.type | General animal type (e.g., Mammal, Reptile) |
Book Module
| Key Name | Description |
|---|---|
book.author | Author name (e.g., J.K. Rowling, Haruki Murakami) |
book.format | Book format (e.g., Paperback, E-book, Hardcover) |
book.genre | Book genre (e.g., Science Fiction, Mystery, Romance) |
book.publisher | Publisher name (e.g., Penguin Random House, HarperCollins) |
book.series | Book series name (e.g., "Harry Potter", "The Lord of the Rings") |
book.title | Book title (e.g., "1984", "Pride and Prejudice") |
Color Module
| Key Name | Description |
|---|---|
color.cmyk | CMYK color value (e.g., 0, 80, 80, 20) |
color.colorByCSSColorSpace | Generate color by CSS color space (e.g., RGB, HSL) |
color.cssSupportedFunction | CSS-supported color functions (e.g., hsl(), rgb(), hwb()) |
color.cssSupportedSpace | CSS-supported color spaces (e.g., sRGB, display-p3) |
color.hsl | HSL color value (e.g., hsl(240, 100%, 50%)) |
color.human | Human-readable color name (e.g., "Red", "Sky Blue") |
color.hwb | HWB color value (e.g., hwb(240 0% 0%)) |
color.lab | Lab color value (e.g., lab(50, 20, -30)) |
color.lch | LCH color value (e.g., lch(50, 40, 270)) |
color.rgb | RGB color value (e.g., rgb(255, 0, 0), #FF0000) |
color.space | Color space name (e.g., RGB, CMYK, Lab) |
Commerce Module
| Key Name | Description |
|---|---|
commerce.department | Store department name (e.g., "Electronics", "Clothing") |
commerce.isbn | ISBN book number (e.g., 978-0306406157) |
commerce.price | Product price (e.g., $29.99, ¥199) |
commerce.product | Product name (e.g., "Laptop", "Wireless Headphones") |
commerce.productAdjective | Product adjective (e.g., "Durable", "Sleek") |
commerce.productDescription | Product description (e.g., "Lightweight laptop with 16GB RAM") |
commerce.productMaterial | Product material (e.g., "Aluminum", "Cotton") |
commerce.productName | Complete product name (usually "Adjective + Material + Product", e.g., "Sleek Aluminum Laptop") |
Company Module
| Key Name | Description |
|---|---|
company.buzzAdjective | Business buzzword adjective (e.g., "Innovative", "Agile") |
company.buzzNoun | Business buzzword noun (e.g., "Solution", "Synergy") |
company.buzzPhrase | Complete business buzzphrase (e.g., "Leverage innovative synergies") |
company.buzzVerb | Business buzzword verb (e.g., "Optimize", "Streamline") |
company.catchPhrase | Company catchphrase (e.g., "Think Different", "Just Do It") |
company.catchPhraseAdjective | Adjective in catchphrase (e.g., "Different" in "Think Different") |
company.catchPhraseDescriptor | Descriptor in catchphrase (e.g., "Just" in "Just Do It") |
company.catchPhraseNoun | Noun in catchphrase (e.g., "Ideas" in "Inspire Great Ideas") |
company.name | Company name (e.g., "TechNova Inc.", "GlobalSoft Solutions") |
Database Module
| Key Name | Description |
|---|---|
database.collation | Database collation (e.g., "utf8mb4_general_ci", "SQL_Latin1_General_CP1_CI_AS") |
database.column | Database column name (e.g., "user_id", "order_date") |
database.engine | Database engine (e.g., InnoDB, MyISAM, MongoDB WiredTiger) |
database.mongodbObjectId | MongoDB ObjectId (e.g., 60d21b4667d0d8992e610c85) |
database.type | Database type (e.g., Relational, NoSQL, Graph) |
DataType Module
| Key Name | Description |
|---|---|
datatype.boolean | Boolean value (true/false) |
Date Module
| Key Name | Description |
|---|---|
date.anytime | Random time (any timestamp) |
date.between | Time between two dates (e.g., between 2023-01-01 and 2023-12-31) |
date.betweens | Multiple date ranges (e.g., [["2023-01-01", "2023-03-31"], ["2023-07-01", "2023-09-30"]]) |
date.birthdate | Birthdate (usually within a reasonable age range, e.g., 1980-2005) |
date.future | Future date (e.g., 2024-05-15, relative to current date) |
date.month | Month name (e.g., "January", "December", "七月") |
date.past | Past date (e.g., 2022-11-05, relative to current date) |
date.recent | Recent date (e.g., within the last 30 days) |
date.soon | Upcoming date (e.g., within the next 7 days) |
date.timeZone | Time zone (e.g., "Asia/Shanghai", "America/New_York") |
date.weekday | Weekday name (e.g., "Monday", "Sunday", "星期三") |
Finance Module
| Key Name | Description |
|---|---|
finance.accountName | Account name (e.g., "Personal Savings", "Corporate Checking") |
finance.accountNumber | Account number (e.g., 1234-5678-9012-3456) |
finance.amount | Monetary amount (e.g., 1500.50, 25000) |
finance.bic | Bank Identifier Code (BIC/SWIFT, e.g., BKCHCNBJ110) |
finance.bitcoinAddress | Bitcoin address (e.g., 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa) |
finance.creditCardCVV | Credit card CVV code (e.g., 123, 456) |
finance.creditCardIssuer | Credit card issuer (e.g., Visa, Mastercard, China UnionPay) |
finance.creditCardNumber | Credit card number (e.g., 4111-1111-1111-1111, 5555-5555-5555-4444) |
finance.currency | Currency name with symbol (e.g., "US Dollar ($)", "Euro (€)") |
finance.currencyCode | Currency code (e.g., USD, EUR, CNY) |
finance.currencyName | Currency name (e.g., "US Dollar", "Euro", "Chinese Yuan") |
finance.currencyNumericCode | Currency numeric code (e.g., 840 for USD, 978 for EUR) |
finance.currencySymbol | Currency symbol (e.g., $, €, ¥) |
finance.ethereumAddress | Ethereum address (e.g., 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D) |
finance.iban | International Bank Account Number (IBAN, e.g., DE89370400440532013000) |
finance.litecoinAddress | Litecoin address (e.g., LhY3iYy8QKj4j1c7Uu9q5GzRv2t6X7w8x9) |
finance.pin | Bank card PIN code (e.g., 1234, 5678) |
finance.routingNumber | Bank routing number (e.g., 121000358) |
finance.transactionDescription | Transaction description (e.g., "Grocery store purchase", "Online shopping refund") |
finance.transactionType | Transaction type (e.g., "Deposit", "Withdrawal", "Transfer") |
Food Module
| Key Name | Description |
|---|---|
food.adjective | Food adjective (e.g., "Crispy", "Savory") |
food.description | Food description (e.g., "Golden-brown fried chicken with spicy sauce") |
food.dish | Dish name (e.g., "Beef Stir-Fry", "Margherita Pizza") |
food.ethnicCategory | Ethnic cuisine category (e.g., "Sichuan Cuisine", "Italian Cuisine", "Japanese Sushi") |
food.fruit | Fruit name (e.g., "Apple", "Mango", "Blueberry") |
food.ingredient | Ingredient name (e.g., "Garlic", "Olive Oil", "Chicken Breast") |
food.meat | Meat type (e.g., "Beef", "Pork", "Lamb") |
food.spice | Spice name (e.g., "Cumin", "Paprika", "Ginger") |
food.vegetable | Vegetable name (e.g., "Tomato", "Broccoli", "Carrot") |
Git Module
| Key Name | Description |
|---|---|
git.branch | Git branch name (e.g., "main", "feature/login", "bugfix/payment") |
git.commitDate | Commit date (e.g., "2023-10-05T14:30:00Z") |
git.commitEntry | Complete commit log entry (includes SHA, author, date, and message) |
git.commitMessage | Commit message (e.g., "Fix login form validation", "Add user profile page") |
git.commitSha | Commit SHA hash (e.g., a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0) |
Hacker Module
| Key Name | Description |
|---|---|
hacker.abbreviation | Hacker term abbreviation (e.g., "API", "SQL", "HTTP") |
hacker.adjective | Hacker-style adjective (e.g., "Encrypted", "Rooted", "Decentralized") |
hacker.ingverb | Verb ending in -ing (hacker context, e.g., "Hacking", "Coding", "Debugging") |
hacker.noun | Hacker noun (e.g., "Firewall", "Server", "Algorithm") |
hacker.phrase | Hacker-style phrase (e.g., "Bypass the firewall", "Optimize the backend API") |
hacker.verb | Hacker verb (e.g., "Crack", "Decrypt", "Deploy") |
Helpers Module
| Key Name | Description |
|---|---|
helpers.arrayElement | Randomly select one element from an array |
helpers.arrayElements | Select multiple elements from an array |
helpers.enumValue | Enum value (randomly select from an enum) |
helpers.fake | Generate fake data (wrap other fake data methods) |
helpers.fromRegExp | Generate string matching a regular expression (e.g., /[A-Z]{3}\d{3}/ → "ABC123") |
helpers.maybe | Return a value with a certain probability (e.g., 50% chance to return "value", 50% to return null) |
helpers.multiple | Generate multiple values (e.g., 3 random names) |
helpers.mustache | Render Mustache templates (e.g., "Hello " → "Hello Alice") |
helpers.objectEntry | Object entry (key-value pair, e.g., ["name", "Alice"]) |
helpers.objectKey | Object key (randomly select a key from an object) |
helpers.objectValue | Object value (randomly select a value from an object) |
helpers.rangeToNumber | Convert a range to a number (e.g., "1-10" → 5, [1, 10] → 8) |
helpers.replaceCreditCardSymbols | Replace credit card symbol placeholders (e.g., "XXXX-XXXX-XXXX-" → "XXXX-XXXX-XXXX-1 |